import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/order/customer-complaints-management/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/order/customer-complaints-management/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/order/customer-complaints-management/update',
    method: 'POST',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/order/customer-complaints-management/delete/' + data,
    method: 'DELETE'
  })
}

// 查看详情
export function GetDetailAPI(data) {
  return request({
    url: '/order/customer-complaints-management/viewSolution/' + data,
    method: 'GET'
  })
}

// 冻结
export function FrozenAPI(data) {
  return request({
    url: '/order/customer-complaints-management/frozen/' + data,
    method: 'GET'
  })
}

// 解冻
export function ThawAPI(data) {
  return request({
    url: '/order/customer-complaints-management/thaw/' + data,
    method: 'GET'
  })
}

// 撤销审核
export function RevokeAPI(data) {
  return request({
    url: '/order/customer-complaints-management/deleteReview/' + data,
    method: 'GET'
  })
}

// 提交审核
export function ReviewSubmitAPI(data) {
  return request({
    url: '/order/customer-complaints-management/submitReview/' + data,
    method: 'GET'
  })
}

// 上传解决方案
export function uploadSolutionAPI(data) {
  return request({
    url: '/order/customer-complaints-solution/upload',
    method: 'POST',
    data
  })
}

// 客户审核
export function ToExamineAPI(data) {
  return request({
    url: '/order/customer-complaints-management/complaintsReview',
    method: 'POST',
    data
  })
}

// 方案审核
export function FangAnExamineAPI(data) {
  return request({
    url: '/order/customer-complaints-management/programmeReview',
    method: 'POST',
    data
  })
}

// 明细项
export function GetDataBySaleNumberAndMaterialCodeAPI(params) {
  return request({
    url: '/order/sales-order/getDataBySaleNumberAndMaterialCode',
    method: 'GET',
    params
  })
}
